﻿
namespace ORS.OrderRobot.Domain
{
    /// <summary>
    /// 账号池实体
    /// </summary>
    public class Account: Entity<int>
    {
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email {  get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 最后登录日期
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 账号关联的登机牌
        /// </summary>
        public ICollection<AccountBoarding> Boardings {  get; set; } = new List<AccountBoarding>();
        /// <summary>
        /// 账号关联的订单
        /// </summary>
        public ICollection<AccountOrder> AccountOrders { get; set; } = new List<AccountOrder>();
        /// <summary>
        /// 是否是启用状态
        /// </summary>
        public bool IsActive { get; set; } = true;
    }
}
